FROM  192.168.10.79/chanpinzu/java:8-jre

ENV APP_HOME /usr/local/txmanager
ENV PATH $APP_HOME:$PATH

RUN mkdir -p "$APP_HOME"
WORKDIR $APP_HOME
COPY tx-manager-4.1.0.zip .
COPY docker-start.sh .
RUN chmod 777 *.sh && unzip -q tx-manager-4.1.0.zip && rm -rf tx-manager-4.1.0.zip

EXPOSE 8899
EXPOSE 9999
CMD ["docker-start.sh", "run"]